package cn.com.nes.site.module.service.monitor;

import cn.com.nes.site.entity.DataReq;
import cn.com.nes.site.entity.PageData;
import cn.com.nes.site.module.dao.monitor.WarningDaoImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;

@Service
public class WarningService {

    @Resource
    private WarningDaoImpl impl;

    public PageData getWarningRules(DataReq req) throws Exception {
        return impl.getWarningRules(req);
    }

    public PageData addWarningRules(DataReq req) throws Exception {
        return impl.addWarningRules(req);
    }

    public PageData getDeviceAndItemForWarningRules(DataReq req) throws Exception {
        return impl.getDeviceAndItemForWarningRules(req);
    }

    public PageData getQueryDataForWarningRules(DataReq req) throws Exception {
        return impl.getQueryDataForWarningRules(req);
    }

    public PageData deleteWarningRules(DataReq req) throws Exception {
        return impl.deleteWarningRules(req);
    }

    public PageData getNewWarningList(DataReq req) {
        return impl.getNewWarningList(req);
    }

    public PageData getWarningInfoList(DataReq req) {
        return impl.getWarningInfoList(req);
    }

    public PageData addWarningInfo(DataReq req) throws SQLException {
        return impl.addWarningInfo(req);
    }

    public PageData delWarningInfo(DataReq req) throws SQLException {
        return impl.delWarningInfo(req);
    }

    public PageData ignore(DataReq req) throws SQLException {
        return impl.ignore(req);
    }
    public PageData cancelIgnoredItem(DataReq req) throws SQLException {
        return impl.cancelIgnoredItem(req);
    }
}
